package org.truenewx.tnxjee.core.context;

import java.util.Locale;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.lang.NonNull;
import org.truenewx.tnxjee.core.Strings;

public class SpringContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

    @Override
    public void initialize(@NonNull ConfigurableApplicationContext applicationContext) {
        System.setProperty("file.encoding", Strings.ENCODING_UTF8);
        Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
    }

}
